package game.manager
{
	import flash.display.Sprite;

	public class LayerManager
	{
		public static var scenesLayer:Sprite;
		public static var windowsLayer:Sprite; 	// 各系统窗口
		public static var mainUILayer:Sprite;			// 主界面UI
		
		public static var tipsLayer:Sprite;		// Tooltip
		public static var alertLayer:Sprite;		// 通用提醒层
		public static var loadingLayer:Sprite;	// 加载界面
		public static var mouseLayer:Sprite;		// 鼠标层
		
		public static function init(viewRoot:Sprite):void
		{
			LayerManager.scenesLayer = new Sprite();
			LayerManager.scenesLayer.mouseEnabled = false;
			viewRoot.addChild(LayerManager.scenesLayer);
			
			LayerManager.mainUILayer = new Sprite();
			LayerManager.mainUILayer.mouseEnabled = false;
			viewRoot.addChild(LayerManager.mainUILayer);
			
			LayerManager.windowsLayer = new Sprite();
			LayerManager.windowsLayer.mouseEnabled = false;
			viewRoot.addChild(LayerManager.windowsLayer);
			
			LayerManager.tipsLayer = new Sprite();
			LayerManager.tipsLayer.mouseEnabled = false;
			LayerManager.tipsLayer.mouseChildren = false;
			viewRoot.addChild(LayerManager.tipsLayer);
			
			LayerManager.alertLayer = new Sprite();
			LayerManager.alertLayer.mouseEnabled = false;
			viewRoot.addChild(LayerManager.alertLayer);
			
			LayerManager.loadingLayer = new Sprite();
			LayerManager.loadingLayer.mouseEnabled = false;
			viewRoot.addChild(LayerManager.loadingLayer);
			
			LayerManager.mouseLayer = new Sprite();
			LayerManager.mouseLayer.mouseEnabled = false;
			LayerManager.mouseLayer.mouseChildren = false;
			viewRoot.addChild(LayerManager.mouseLayer);
		}
	}
}